<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>单独发送图片</title>
</head>
<style type="text/css">
    body {
        font-family: Arial, sans-serif;
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background-color: #f5f5f5;
    }

    h1 {
        text-align: center;
        color: #333;
    }

    form {
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    label, input {
        display: block;
        margin-bottom: 10px;
    }

    input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    input[type="submit"] {
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 4px;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 16px;
    }

    input[type="submit"]:hover {
        background-color: #0056b3;
    }
</style>
<body>
<form th:action="@{/emailImg}" method="post" enctype="multipart/form-data">
    <label>收件人：</label>
    <input type="text" name="emailname" placeholder="请输入邮箱">
    <label>主题：</label>
    <input type="text" name="title" placeholder="请输入标题">
    <label>选择图片：</label>
    <input type="file" name="img" value="选择附件">
    <input type="submit" value="发送" id="submit">
</form>
</body>
</html>